<!DOCTYPE html>
<html>
<head>
    <title>账单流水</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
            </i-col>
            <i-col span="4">
                <i-input v-model="q.phone" @on-enter="query" placeholder="手机号码"/>
            </i-col>
            <i-col span="4">
                <i-select v-model="q.type">
                    <i-option value="0">全部</i-option>
                    <i-option value="1">支出</i-option>
                    <i-option value="2">收入</i-option>
                </i-select>
            </i-col>
            <i-button @click="query">查询</i-button>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="apiAmountBill" :rules="ruleValidate" :label-width="80">
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="apiAmountBill.createTime" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="会员id" prop="userId">
                <i-input v-model="apiAmountBill.userId" placeholder="会员id"/>
            </Form-item>
            <Form-item label="1 支出 2 收入" prop="type">
                <i-input v-model="apiAmountBill.type" placeholder="1 支出 2 收入"/>
            </Form-item>
            <Form-item label="备注" prop="remark">
                <i-input v-model="apiAmountBill.remark" placeholder="备注"/>
            </Form-item>
            <Form-item label="" prop="mouldId">
                <i-input v-model="apiAmountBill.mouldId" placeholder=""/>
            </Form-item>
            <Form-item label="" prop="mouldName">
                <i-input v-model="apiAmountBill.mouldName" placeholder=""/>
            </Form-item>
            <Form-item label="主题" prop="title">
                <i-input v-model="apiAmountBill.title" placeholder="主题"/>
            </Form-item>
            <Form-item label="充值金额" prop="amount">
                <i-input v-model="apiAmountBill.amount" placeholder="充值金额"/>
            </Form-item>
            <Form-item label="" prop="channel">
                <i-input v-model="apiAmountBill.channel" placeholder=""/>
            </Form-item>
            <Form-item label="" prop="billNo">
                <i-input v-model="apiAmountBill.billNo" placeholder=""/>
            </Form-item>
            <Form-item label="账单状态 1 待付款 2 失败 3 支付成功" prop="status">
                <i-input v-model="apiAmountBill.status" placeholder="账单状态 1 待付款 2 失败 3 支付成功"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/connection/apiamountbill.js?_${date.systemTime}"></script>
</body>
</html>